﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Sys.Repository.Entities
{
    /// <summary>
    /// 用户播放记录
    /// </summary>
    [Table("sys_EduRecords"), Comment("用户记录"),Index(nameof(Course)), Index(nameof(Group))]
    public class EduRecords : EfEntity
    {
        /// <summary>
        /// 用户
        /// </summary>
        [Comment("用户")]
        public long User { get; set; }

        /// <summary>
        /// 课程
        /// </summary>
        [Comment("课程")]
        public long Course { get; set; }

        /// <summary>
        /// 课时
        /// </summary>
        [Comment("课时")]
        public long Lesson { get; set; }

        /// <summary>
        /// 进度
        /// </summary>
        [Comment("进度")]
        public int Rate { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Comment("创建时间")]
        public DateTime CreateDate { get; set; }  
        
        /// <summary>
        /// 分组ID
        /// </summary>
        [Comment("分组ID")]
        public long Group { get; set; }
    }
}
